<template>
	<div class="goods-box">
		<img :src="goods.imgPath" alt=""/>
		<p class="title">{{goods.name}}</p>
		<p class="price">￥{{goods.price}}<span>￥{{goods.pricey}}</span></p>
		<p class="sales">已销售{{goods.salesVolume}}件</p>
	</div>
</template>

<script>
	export default{
		name:"goodsSub",
		props: ['goods'],
		data() {
			return {
				/* goods: {
					id: '0000',
					name: '深沉的爱恋',
					introduce: '11枝优质红玫瑰搭配绿叶，满天星，随机赠送2只小熊',
					price: 199.00,
					pricey: 299,
					salesVolume: 13061,
					imgPath: 'http://i.huasongwang.com/i/g/2019/12/10/06292908358727525_360.jpg',
					sort: '爱情鲜花'
				} */
			};
		},
		methods: {}
	}
</script>

<style scoped="scoped">
	*{
		padding: 0;
		margin: 0;
		box-sizing: border-box;
	}
	.goods-box{
		width: 3.53rem;
		background-color: white;
		border-radius: 0 0 0.2rem 0.2rem;
		padding-bottom: 0.08rem;
	}
	.goods-box img{
		width: 3.53rem;
		height: 3.53rem;
	}
	p{
		width: 100%;
		padding-left: 0.05rem;
		text-align: left;
		color: #6E6E6E;
	}
	.title{
		font-size: 0.3rem;
		width: 100%;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}
	.price{
		color: #FF3303;
		font-size: 0.28rem;
		padding: 0.05rem 0;
	}
	.price span{
		color: #6E6E6E;
		text-decoration: line-through;
		font-size: 0.22rem;
		display: inline-block;
		padding-left: 0.08rem;
	}
	.sales{
		font-size: 0.25rem;
	}
</style>
